package com.bsoft.gol.hbs.service;

import com.bsoft.gol.hbs.bean.request.QueryCopywriterConfigRequest;
import ctd.controller.exception.ControllerException;
import ctd.util.annotation.RpcService;
import hcn.base.BaseCopywriterConfig;
import pcn.bean.consultation.CopywriterQo;

import java.util.List;

public interface BaseCopywriterConfigService {

    @RpcService
    List<BaseCopywriterConfig> queryAllCopywriterConfig(QueryCopywriterConfigRequest request) throws ControllerException;

    @RpcService
    void saveCopywriterConfig(BaseCopywriterConfig baseCopywriterConfig) throws ControllerException;

    @RpcService
    List<BaseCopywriterConfig> queryCopywriterConfig(String objectId, String moduleId);

    @RpcService
    BaseCopywriterConfig getCopywriterConfigByCopywriterCode(String copywriterCode,String moduleId);

    @RpcService
    void initCopywriterConfig(String orgId);

    @RpcService
    BaseCopywriterConfig getCopywriterByCode(CopywriterQo qo);

    @RpcService
    BaseCopywriterConfig getCopywriterConfigDetail(int id);

}
